//
//  UserModel.m
//  跨界收
//
//  Created by Dongfuming on 2018/11/16.
//  Copyright © 2018 gztx. All rights reserved.
//

#import "UserModel.h"

@implementation UserModel

+ (instancetype)sharedModel
{
    static UserModel *_instance = nil;
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        _instance = [self objectFromDisk];
    });
    return _instance;
}


+ (NSDictionary *)modelCustomPropertyMapper
{
    return @{ @"id_": @"id" };
}

- (void)encodeWithCoder:(NSCoder *)aCoder
{
    [self modelEncodeWithCoder:aCoder];
}

- (id)initWithCoder:(NSCoder *)aDecoder
{
    self = [super init];
    return [self modelInitWithCoder:aDecoder];
}

- (NSString *)description
{
    return [self modelDescription];
}

@end
